package com.bicon.base.data.pojo.botu;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户饮食明细
 * </p>
 *
 * @author zhoutyianqi
 * @since 2018-07-25
 */
@TableName("t_h_user_diet_detail")
public class THUserDietDetail extends Model<THUserDietDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 关系id
     */
    @TableField("relation_id")
    private String relationId;
    /**
     * 食物id
     */
    @TableField("food_id")
    private String foodId;
    /**
     * 食物名称
     */
    @TableField("food_name")
    private String foodName;
    /**
     * 重量
     */
    @TableField("weight_value")
    private String weightValue;
    /**
     * 重量单位
     */
    @TableField("weight_unit")
    private String weightUnit;
    /**
     * 能量
     */
    @TableField("energy_value")
    private String energyValue;
    /**
     * 能量单位
     */
    @TableField("energy_unit")
    private String energyUnit;
    /**
     * 分类 system系统食物 custom自定义食物
     */
    private String type;
    /**
     * 删除标志：0正常，1删除
     */
    @TableField("logic_delete")
    private String logicDelete;
    /**
     * 创建时间
     */
    @TableField("create_date")
    private Date createDate;
    /**
     * 更新时间
     */
    @TableField("update_date")
    private Date updateDate;
    
    @TableField(exist = false)
    private String dictionary_code;
    
    @TableField(exist = false)
    private String index_value;

    
    

    public String getIndex_value() {
		return index_value;
	}

	public void setIndex_value(String index_value) {
		this.index_value = index_value;
	}

	public String getDictionary_code() {
		return dictionary_code;
	}

	public void setDictionary_code(String dictionary_code) {
		this.dictionary_code = dictionary_code;
	}

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public String getFoodId() {
        return foodId;
    }

    public void setFoodId(String foodId) {
        this.foodId = foodId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public String getWeightValue() {
        return weightValue;
    }

    public void setWeightValue(String weightValue) {
        this.weightValue = weightValue;
    }

    public String getWeightUnit() {
        return weightUnit;
    }

    public void setWeightUnit(String weightUnit) {
        this.weightUnit = weightUnit;
    }

    public String getEnergyValue() {
        return energyValue;
    }

    public void setEnergyValue(String energyValue) {
        this.energyValue = energyValue;
    }

    public String getEnergyUnit() {
        return energyUnit;
    }

    public void setEnergyUnit(String energyUnit) {
        this.energyUnit = energyUnit;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLogicDelete() {
        return logicDelete;
    }

    public void setLogicDelete(String logicDelete) {
        this.logicDelete = logicDelete;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "THUserDietDetail{" +
        "id=" + id +
        ", relationId=" + relationId +
        ", foodId=" + foodId +
        ", foodName=" + foodName +
        ", weightValue=" + weightValue +
        ", weightUnit=" + weightUnit +
        ", energyValue=" + energyValue +
        ", energyUnit=" + energyUnit +
        ", type=" + type +
        ", logicDelete=" + logicDelete +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        "}";
    }
}
